import request from '@/utils/request'

// 查询出库待办任务列表
export function listChukuSprw(query) {
  return request({
    url: '/business/chukuSprw/list',
    method: 'get',
    params: query
  })
}

// 查询出库待办任务详细
export function getChukuSprw(id) {
  return request({
    url: '/business/chukuSprw/' + id,
    method: 'get'
  })
}

// 新增出库待办任务
export function addChukuSprw(data) {
  return request({
    url: '/business/chukuSprw',
    method: 'post',
    data: data
  })
}

// 修改出库待办任务
export function updateChukuSprw(data) {
  return request({
    url: '/business/chukuSprw',
    method: 'put',
    data: data
  })
}
// 审批出库待办任务
export function spChukuSprw(data) {
  return request({
    url: '/business/chukuSprw/sp',
    method: 'put',
    data: data
  })
}


// 删除出库待办任务
export function delChukuSprw(id) {
  return request({
    url: '/business/chukuSprw/' + id,
    method: 'delete'
  })
}
